<template>
</template>

<script>
	export default {
		data() {
			return {
				title: 'Hello',
				buildName:"",
				buildList:[],
				constructionList:[]
			}
		},
		onLoad(opt) {
			console.log(opt)
			this.getRequest();
		},
		onShow() {
	
		},
		methods: {
			goToPage(path){
				uni.navigateTo({
					url:path
				})
			},
			getRequest(){
				var then=this
				uni.request({
					method:'POST',
					url:'https://baiyi.kent.work/api/v1/system/getIndexData',
					success(res) {
						console.log(res)
						//获取buildlist
						this.buildName=res.data.data.buildList[2].name
						then.buildList=res.data.data.buildList;
						then.constructionList=res.data.data.constructionList
					},
					fail() {
						
					},
					complete() {
						
					}
				})
			}
		}
	}
</script>

<style>
</style>